<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .header{
            width: 900px;
            height: 200px;
            background-color: skyblue;
            margin: 0 auto;    /* 居中 */
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="header">
        <span>里面的文字</span>
    </div>
</body>
</html>